
// 异步
export const request = ({ type, data, url, } = {}) =>
    new Promise(resolve => {
        $.ajax({
            type,
            data,
            url,
            success: resolve
        })
    })
